<template>	<view class="content">

<view>
	<view class="group">资讯评论管理</view>
		<button @click="onArticleCommentController_GetById">根据id获取资讯评论</button>
		<button @click="onArticleCommentController_GetByArticleId">获取资讯评论列表</button>
		<button @click="onArticleCommentController_Add">添加资讯评论</button>
		<button @click="onArticleCommentController_Remove">批量删除</button>
		<button @click="onArticleCommentController_GetMyComments">获取我的评论</button>
</view>

<view>
	<view class="group">新闻资讯接口</view>
		<button @click="onArticleController_GetById">根据id获取资讯发文</button>
		<button @click="onArticleController_GetPage">分页获取资讯发文数据</button>
</view>

<view>
	<view class="group">推手圈评论管理</view>
		<button @click="onCircleArticleCommentController_GetById">根据id获取推手圈评论</button>
		<button @click="onCircleArticleCommentController_GetByArticleId">获取推手圈评论列表</button>
		<button @click="onCircleArticleCommentController_Add">添加推手圈评论</button>
		<button @click="onCircleArticleCommentController_Remove">批量删除</button>
</view>

<view>
	<view class="group">推手圈发文管理</view>
		<button @click="onCircleArticleController_GetById">根据id获取推手圈发文</button>
		<button @click="onCircleArticleController_GetPage">分页获取推手圈发文数据</button>
		<button @click="onCircleArticleController_Add">添加推手圈发文</button>
		<button @click="onCircleArticleController_GetOwnPage">分页获取个人的推手圈发文</button>
		<button @click="onCircleArticleController_Remove">批量删除自己的推手圈发文</button>
</view>

<view>
	<view class="group">推手圈点赞接口</view>
		<button @click="onCircleArticleSupportController_Add">点赞</button>
		<button @click="onCircleArticleSupportController_Cancel">取消点赞</button>
</view>

<view>
	<view class="group">文件控制器</view>
		<button @click="onFileController_UploadImgToLocal">上传图片到本地服务器</button>
		<button @click="onFileController_UploadVideoToLocal">上传视频到本地服务器</button>
</view>

<view>
	<view class="group">首页</view>
		<button @click="onHomeController_MockLogin">模拟登录</button>
		<button @click="onHomeController_Login">微信小程序的给 wxlogin 方法后调用的服务端方法</button>
		<button @click="onHomeController_Index">获取首页数据</button>
		<button @click="onHomeController_GetPhoneNumber">获取手机号</button>
		<button @click="onHomeController_RegistrationAgreement">注册协议</button>
		<button @click="onHomeController_GetPromotionPage">获取推广页或分享页面富文本</button>
</view>

<view>
	<view class="group">商品接口</view>
		<button @click="onProductController_GetById">根据id 信息获取商品信息</button>
		<button @click="onProductController_GetShareCode">获取小程序码商品等的推广码</button>
</view>

<view>
	<view class="group">商品订单</view>
		<button @click="onProductOrderController_GetById">根据id获取订单详情</button>
		<button @click="onProductOrderController_CreateOrder">创建订单</button>
		<button @click="onProductOrderController_CancelUnpaidOrder">尚未支付取消订单</button>
		<button @click="onProductOrderController_KxPay">支付订单</button>
		<button @click="onProductOrderController_GetLogisticsInfo">获取订单的物流信息</button>
		<button @click="onProductOrderController_CancelPaidOrder">取消已支付的订单并退款</button>
		<button @click="onProductOrderController_ConfirmOrder">确认订单已收货，收货后不能退货退款，并且计算分佣。</button>
		<button @click="onProductOrderController_GoodsRefundApplication">退货退款，需要理由和凭证</button>
		<button @click="onProductOrderController_GetUserOrderPage">分页获取用户订单</button>
		<button @click="onProductOrderController_ShareProductOrder">订单分享，分享后订单状态变成已分享</button>
		<button @click="onProductOrderController_CalCanUseIntegral">计算购买下单可获得的积分数</button>
		<button @click="onProductOrderController_CalShipAmount">计算运费</button>
</view>

<view>
	<view class="group">商品评论</view>
		<button @click="onProductReviewController_GetPage">分页获取商品评论</button>
		<button @click="onProductReviewController_Add">添加产品评论</button>
</view>

<view>
	<view class="group">推手排行榜接口</view>
		<button @click="onPusherRankController_GetMyRankList">获取我的推手圈排行榜明细</button>
</view>

<view>
	<view class="group">推手圈相关接口</view>
		<button @click="onPushValueLogController_GetPusherRank">获取推手榜前 10</button>
		<button @click="onPushValueLogController_SignIn">签到</button>
		<button @click="onPushValueLogController_Share">分享</button>
</view>

<view>
	<view class="group">区域管理</view>
		<button @click="onRegionController_Get">根据区域id获取区域信息</button>
		<button @click="onRegionController_GetByPath">根据区域路径获取，</button>
		<button @click="onRegionController_GetProvinces">获取所有省份，连带市县数据</button>
		<button @click="onRegionController_GetOptions">根据上级Id获取选项列表</button>
		<button @click="onRegionController_GetProvinceOptions">获取省份选项列表</button>
		<button @click="onRegionController_GetCityOptions">获取城市选项列表</button>
</view>

<view>
	<view class="group">用户收货地址管理</view>
		<button @click="onUserAddressController_GetById">根据id获取用户收货地址</button>
		<button @click="onUserAddressController_GetList">获取我的用户收货地址列表</button>
		<button @click="onUserAddressController_Add">添加用户收货地址</button>
		<button @click="onUserAddressController_Edit">修改用户收货地址</button>
		<button @click="onUserAddressController_Remove">批量删除</button>
</view>

<view>
	<view class="group">会员个人信息</view>
		<button @click="onUserSelfController_UpdateUserInfoFromEncryptedData">更新会员信息，把微信信息更新给会员(需要前端授权 getUserInfo)</button>
		<button @click="onUserSelfController_UpdateUserInfo">更新会员信息，把微信信息更新给会员(需要前端授权 getUserInfo)</button>
		<button @click="onUserSelfController_GetOwnInfo">获取个人信息</button>
		<button @click="onUserSelfController_GetBindWxUrl">获取绑定微信公众号的url地址</button>
		<button @click="onUserSelfController_GetUserCenterInfo">获取个人中心数据</button>
		<button @click="onUserSelfController_GetTeamUserCount">获取团队一级人数和二级人数</button>
		<button @click="onUserSelfController_GetTeamInfo">获取我的团队的推值、金币、积分信息</button>
		<button @click="onUserSelfController_GetIntegralLogPage">分页获取积分记录</button>
		<button @click="onUserSelfController_GetCoinLogPage">分页获取金币记录</button>
		<button @click="onUserSelfController_GetPushValueLogByMonth">按月份推值明细查询</button>
</view>

<view>
	<view class="group">用户提现管理</view>
		<button @click="onUserWithdrawController_GetById">根据id获取UserWithdraw 用户提现</button>
		<button @click="onUserWithdrawController_GetList">获取用户自己的提现列表</button>
		<button @click="onUserWithdrawController_GetPage">分页获取用户自己的提现列表</button>
		<button @click="onUserWithdrawController_Add">添加用户提现申请</button>
		<button @click="onUserWithdrawController_GetRule">获取提现规则</button>
</view>
</view>
</template>
<script>	import api from '../../api/index.js'
	export default {
		methods: {
			onArticleCommentController_GetById(){
				api.articleComment.getById({}).then(res=>{
					console.log(res)
				})
			},
			onArticleCommentController_GetByArticleId(){
				api.articleComment.getByArticleId({}).then(res=>{
					console.log(res)
				})
			},
			onArticleCommentController_Add(){
				api.articleComment.add({}).then(res=>{
					console.log(res)
				})
			},
			onArticleCommentController_Remove(){
				api.articleComment.remove({}).then(res=>{
					console.log(res)
				})
			},
			onArticleCommentController_GetMyComments(){
				api.articleComment.getMyComments({}).then(res=>{
					console.log(res)
				})
			},
			onArticleController_GetById(){
				api.article.getById({}).then(res=>{
					console.log(res)
				})
			},
			onArticleController_GetPage(){
				api.article.getPage({}).then(res=>{
					console.log(res)
				})
			},
			onCircleArticleCommentController_GetById(){
				api.circleArticleComment.getById({}).then(res=>{
					console.log(res)
				})
			},
			onCircleArticleCommentController_GetByArticleId(){
				api.circleArticleComment.getByArticleId({}).then(res=>{
					console.log(res)
				})
			},
			onCircleArticleCommentController_Add(){
				api.circleArticleComment.add({}).then(res=>{
					console.log(res)
				})
			},
			onCircleArticleCommentController_Remove(){
				api.circleArticleComment.remove({}).then(res=>{
					console.log(res)
				})
			},
			onCircleArticleController_GetById(){
				api.circleArticle.getById({}).then(res=>{
					console.log(res)
				})
			},
			onCircleArticleController_GetPage(){
				api.circleArticle.getPage({}).then(res=>{
					console.log(res)
				})
			},
			onCircleArticleController_Add(){
				api.circleArticle.add({}).then(res=>{
					console.log(res)
				})
			},
			onCircleArticleController_GetOwnPage(){
				api.circleArticle.getOwnPage({}).then(res=>{
					console.log(res)
				})
			},
			onCircleArticleController_Remove(){
				api.circleArticle.remove({}).then(res=>{
					console.log(res)
				})
			},
			onCircleArticleSupportController_Add(){
				api.circleArticleSupport.add({}).then(res=>{
					console.log(res)
				})
			},
			onCircleArticleSupportController_Cancel(){
				api.circleArticleSupport.cancel({}).then(res=>{
					console.log(res)
				})
			},
			onFileController_UploadImgToLocal(){
				api.file.uploadImgToLocal({}).then(res=>{
					console.log(res)
				})
			},
			onFileController_UploadVideoToLocal(){
				api.file.uploadVideoToLocal({}).then(res=>{
					console.log(res)
				})
			},
			onHomeController_MockLogin(){
				api.home.mockLogin({}).then(res=>{
					console.log(res)
				})
			},
			onHomeController_Login(){
				api.home.login({}).then(res=>{
					console.log(res)
				})
			},
			onHomeController_Index(){
				api.home.index({}).then(res=>{
					console.log(res)
				})
			},
			onHomeController_GetPhoneNumber(){
				api.home.getPhoneNumber({}).then(res=>{
					console.log(res)
				})
			},
			onHomeController_RegistrationAgreement(){
				api.home.registrationAgreement({}).then(res=>{
					console.log(res)
				})
			},
			onHomeController_GetPromotionPage(){
				api.home.getPromotionPage({}).then(res=>{
					console.log(res)
				})
			},
			onProductController_GetById(){
				api.product.getById({}).then(res=>{
					console.log(res)
				})
			},
			onProductController_GetShareCode(){
				api.product.getShareCode({}).then(res=>{
					console.log(res)
				})
			},
			onProductOrderController_GetById(){
				api.productOrder.getById({}).then(res=>{
					console.log(res)
				})
			},
			onProductOrderController_CreateOrder(){
				api.productOrder.createOrder({}).then(res=>{
					console.log(res)
				})
			},
			onProductOrderController_CancelUnpaidOrder(){
				api.productOrder.cancelUnpaidOrder({}).then(res=>{
					console.log(res)
				})
			},
			onProductOrderController_KxPay(){
				api.productOrder.kxPay({}).then(res=>{
					console.log(res)
				})
			},
			onProductOrderController_GetLogisticsInfo(){
				api.productOrder.getLogisticsInfo({}).then(res=>{
					console.log(res)
				})
			},
			onProductOrderController_CancelPaidOrder(){
				api.productOrder.cancelPaidOrder({}).then(res=>{
					console.log(res)
				})
			},
			onProductOrderController_ConfirmOrder(){
				api.productOrder.confirmOrder({}).then(res=>{
					console.log(res)
				})
			},
			onProductOrderController_GoodsRefundApplication(){
				api.productOrder.goodsRefundApplication({}).then(res=>{
					console.log(res)
				})
			},
			onProductOrderController_GetUserOrderPage(){
				api.productOrder.getUserOrderPage({}).then(res=>{
					console.log(res)
				})
			},
			onProductOrderController_ShareProductOrder(){
				api.productOrder.shareProductOrder({}).then(res=>{
					console.log(res)
				})
			},
			onProductOrderController_CalCanUseIntegral(){
				api.productOrder.calCanUseIntegral({}).then(res=>{
					console.log(res)
				})
			},
			onProductOrderController_CalShipAmount(){
				api.productOrder.calShipAmount({}).then(res=>{
					console.log(res)
				})
			},
			onProductReviewController_GetPage(){
				api.productReview.getPage({}).then(res=>{
					console.log(res)
				})
			},
			onProductReviewController_Add(){
				api.productReview.add({}).then(res=>{
					console.log(res)
				})
			},
			onPusherRankController_GetMyRankList(){
				api.pusherRank.getMyRankList({}).then(res=>{
					console.log(res)
				})
			},
			onPushValueLogController_GetPusherRank(){
				api.pushValueLog.getPusherRank({}).then(res=>{
					console.log(res)
				})
			},
			onPushValueLogController_SignIn(){
				api.pushValueLog.signIn({}).then(res=>{
					console.log(res)
				})
			},
			onPushValueLogController_Share(){
				api.pushValueLog.share({}).then(res=>{
					console.log(res)
				})
			},
			onRegionController_Get(){
				api.region.get({}).then(res=>{
					console.log(res)
				})
			},
			onRegionController_GetByPath(){
				api.region.getByPath({}).then(res=>{
					console.log(res)
				})
			},
			onRegionController_GetProvinces(){
				api.region.getProvinces({}).then(res=>{
					console.log(res)
				})
			},
			onRegionController_GetOptions(){
				api.region.getOptions({}).then(res=>{
					console.log(res)
				})
			},
			onRegionController_GetProvinceOptions(){
				api.region.getProvinceOptions({}).then(res=>{
					console.log(res)
				})
			},
			onRegionController_GetCityOptions(){
				api.region.getCityOptions({}).then(res=>{
					console.log(res)
				})
			},
			onUserAddressController_GetById(){
				api.userAddress.getById({}).then(res=>{
					console.log(res)
				})
			},
			onUserAddressController_GetList(){
				api.userAddress.getList({}).then(res=>{
					console.log(res)
				})
			},
			onUserAddressController_Add(){
				api.userAddress.add({}).then(res=>{
					console.log(res)
				})
			},
			onUserAddressController_Edit(){
				api.userAddress.edit({}).then(res=>{
					console.log(res)
				})
			},
			onUserAddressController_Remove(){
				api.userAddress.remove({}).then(res=>{
					console.log(res)
				})
			},
			onUserSelfController_UpdateUserInfoFromEncryptedData(){
				api.userSelf.updateUserInfoFromEncryptedData({}).then(res=>{
					console.log(res)
				})
			},
			onUserSelfController_UpdateUserInfo(){
				api.userSelf.updateUserInfo({}).then(res=>{
					console.log(res)
				})
			},
			onUserSelfController_GetOwnInfo(){
				api.userSelf.getOwnInfo({}).then(res=>{
					console.log(res)
				})
			},
			onUserSelfController_GetBindWxUrl(){
				api.userSelf.getBindWxUrl({}).then(res=>{
					console.log(res)
				})
			},
			onUserSelfController_GetUserCenterInfo(){
				api.userSelf.getUserCenterInfo({}).then(res=>{
					console.log(res)
				})
			},
			onUserSelfController_GetTeamUserCount(){
				api.userSelf.getTeamUserCount({}).then(res=>{
					console.log(res)
				})
			},
			onUserSelfController_GetTeamInfo(){
				api.userSelf.getTeamInfo({}).then(res=>{
					console.log(res)
				})
			},
			onUserSelfController_GetIntegralLogPage(){
				api.userSelf.getIntegralLogPage({}).then(res=>{
					console.log(res)
				})
			},
			onUserSelfController_GetCoinLogPage(){
				api.userSelf.getCoinLogPage({}).then(res=>{
					console.log(res)
				})
			},
			onUserSelfController_GetPushValueLogByMonth(){
				api.userSelf.getPushValueLogByMonth({}).then(res=>{
					console.log(res)
				})
			},
			onUserWithdrawController_GetById(){
				api.userWithdraw.getById({}).then(res=>{
					console.log(res)
				})
			},
			onUserWithdrawController_GetList(){
				api.userWithdraw.getList({}).then(res=>{
					console.log(res)
				})
			},
			onUserWithdrawController_GetPage(){
				api.userWithdraw.getPage({}).then(res=>{
					console.log(res)
				})
			},
			onUserWithdrawController_Add(){
				api.userWithdraw.add({}).then(res=>{
					console.log(res)
				})
			},
			onUserWithdrawController_GetRule(){
				api.userWithdraw.getRule({}).then(res=>{
					console.log(res)
				})
			},
		}
	}
</script>
